package org.adultedu.service.serviceimpl;

import org.adultedu.dao.TcListMapper;
import org.adultedu.pojo.TcList;
import org.adultedu.service.TcListService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;
import java.util.Map;

@Transactional
@Service("TcListServiceImpl")
public class TcListServiceImpl implements TcListService {
    @Autowired
    private TcListMapper tcListMapper;

    public List<TcList> queryTcList(TcList tcList) {
        return tcListMapper.queryTcList(tcList);
    }

    public int updateTcList(TcList tcList) {
        return tcListMapper.updateTcList(tcList);
    }

    public int insertTcList(Map tcList) {
        return tcListMapper.insertTcList(tcList);
    }

    public int deleteTcList(TcList tcList) {
        return tcListMapper.deleteTcList(tcList);
    }
}
